package com.woniuxy.cloud52.cinemaassembly.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 影院信息
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@Table(name = "c_cinema")
public class Cinema implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "cinema_id", type = IdType.AUTO)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer cinemaId;

    /**
     * 影院名字
     */
    @TableField("NAME")
    private String name;

    /**
     * 影院地址
     */
    private String address;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 地区
     */
    private String region;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * 记录添加时间
     */
    private LocalDateTime rawAddTime;

    /**
     * 记录更新时间
     */
    private LocalDateTime rawUpdateTime;


}
